package com.dengtao.controller;


import com.dengtao.pojo.entity.TestTable;
import com.dengtao.service.ITestTableService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author JiamingZhao
 * @since 2025-02-22
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("test-table")
public class TestTableController {

    private final ITestTableService testTableService;
    @GetMapping("test")
    public TestTable testTable() {
        log.info("打印一条日志");
        return testTableService.getById(1);
    }


}
